for NO_WINDOW widgets, add their allocation.y to the position of the
authorGeorge Lebl <jirka@5z.com>
Sun, 17 Jan 1999 03:49:31 +0000 (03:49 +0000)
committerGeorge Lebl <jirka@src.gnome.org>
Sun, 17 Jan 1999 03:49:31 +0000 (03:49 +0000)
Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>

        * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
          to the position of the tooltip. This fixes tooltip positioning
          problems with some widgets such as a checkbox.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktooltips.c

index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index dfb0745bb80521d93b4cfdb252cb2a5e249949a6..87980f2939aaeb2cba60694c0b1b57b018aeb74b 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
+
+       * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
+         to the position of the tooltip. This fixes tooltip positioning
+         problems with some widgets such as a checkbox.
+
 Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
 
        * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
index 4b219471dfd41f5d59e5a16766725171010d1b3a..2450398329e936fcd22c4a77f0ca2483c184e50a 100644 (file)
@@ -472,6 +472,8 @@ gtk_tooltips_draw_tips (GtkTooltips * tooltips)
 
   gdk_window_get_pointer (NULL, &x, NULL, NULL);
   gdk_window_get_origin (widget->window, NULL, &y);
+  if (GTK_WIDGET_NO_WINDOW (widget))
+    y += widget->allocation.y;
 
   x -= ((w >> 1) + 4);